package com.wander.business.book.c1_3_3;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author Wander.Zeng
 * @create 2017-08-05 22:51
 * @desc BookMain
 */
public class BookMain {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(BookConfig_c1_3_3.class);

        DemoAnnotationService demoAnnotationService = context.getBean(DemoAnnotationService.class);
        DemoMethodService demoMethodService = context.getBean(DemoMethodService.class);

        demoAnnotationService.add();
        demoMethodService.add();

        context.close();
    }

}
